var FormatString = {

	formatString : function(t) {
        t = String(t);
        var r = arguments,
        n = Object.prototype.toString;
        return t.replace(/#\{(.+?)\}/g,
        function(t, e) {
            for (var o = null,
            i = 1,
            c = r.length; c > i; i++) {
                var a = r[i];
                if (a && "object" == typeof a && e in a) {
                    o = a;
                    break
                }
            }
            if (o) {
                var u = o[e];
                if ("[object Function]" == n.call(u)) {
                    var l = u.call(o);
                    return "[object Array]" == n.call(l) ? l.join("") : l
                }
                return "[object Array]" == n.call(u) ? u.join("") : String(void 0 === u ? "": u)
            }
            return ""
        })
    },
};
